]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
chrome: Ignore minimized windows when updating visibility
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 27 Jul 2011 19:41:44 +0000 (21:41 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 27 Jul 2011 21:40:49 +0000 (23:40 +0200)
The current check for fullscreen windows ignores the window's
minimization state, so that chrome which is hidden in fullscreen
will always hide if the window on top of the window stack is
fullscreen, even if it is actually minimized.
Instead, skip minimized windows when looking for fullscreen windows.

https://bugzilla.gnome.org/show_bug.cgi?id=655446

js/ui/chrome.js

index 5dd21e5e806d6b8cb449f68b9c02cbbfc949de8e..7110ee5849c95a00a053fa8b0b6b15955ddfdeaf 100644 (file)
@@ -289,6 +289,11 @@ Chrome.prototype = {
 
         for (let i = windows.length - 1; i > -1; i--) {
             let window = windows[i];
+
+            // Skip minimized windows
+            if (!window.showing_on_its_workspace())
+                continue;
+
             let layer = window.get_meta_window().get_layer();
 
             if (layer == Meta.StackLayer.FULLSCREEN) {